/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfohelp.entity;

import org.hibernate.validator.constraints.Length;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 问题列表Entity
 * @author zms
 * @version 2018-04-16
 */
public class CampusinfoProblem extends DataEntity<CampusinfoProblem> {
	
	private static final long serialVersionUID = 1L;
	private String userid;		// 提问者姓名
	private String title;		// 问题题目
	private String content;		// 问题内容
	private String username; //姓名
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}
	public CampusinfoProblem() {
		super();
	}

	public CampusinfoProblem(String id){
		super(id);
	}

	@Length(min=0, max=64, message="提问者姓名长度必须介于 0 和 64 之间")
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}
	
	@Length(min=0, max=60, message="问题题目长度必须介于 0 和 60 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=512, message="问题内容长度必须介于 0 和 512 之间")
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}